{$layout}

<div class="ui menu text blue top-menu">
    <a href="/apps/probes" class="item">已添加探针</a>
    <a href="/apps/square" class="item active">探针广场</a>
    <a href="/apps/addProbe" class="item">制作探针</a>
</div>

<p class="comment">下面是一些官方提供的可以使用的App探针，如果你想贡献自己的探针，可以将探针脚本发到邮箱：19644627@qq.com 或者 QQ群：199435611 。验证后，我们将在下个版本集成到官方探针中</p>

<div v-if="probes.length > 0">
    <table class="ui table selectable">
        <thead>
        <tr>
            <th>App名称</th>
            <th>命令名</th>
            <th>开发者</th>
            <th>官方网站</th>
            <th>文档网址</th>
            <th class="two wide">操作</th>
        </tr>
        </thead>
        <tr v-for="(probe, index) in probes">
            <td><strong>{{probe.name}}</strong>

                <span class="ui label tiny" v-if="!probe.isLocal">官方</span>
            </td>
            <td>{{probe.commandName}}</td>
            <td>
                <span v-if="probe.developer.length > 0">{{probe.developer}}</span>
                <span v-if="probe.developer.length == 0">-</span>
            </td>
            <td>
                <a :href="probe.site" target="_blank" v-if="probe.site.length > 0"><i class="icon external small"></i> </a>
                <span v-if="probe.site.length == 0">-</span>
            </td>
            <td>
                <a :href="probe.docSite" target="_blank" v-if="probe.docSite.length > 0"><i class="icon external small"></i> </a>
                <span v-if="probe.docSite.length == 0">-</span>
            </td>
            <td>
                <a :href="'/apps/probeScript?probeId=' + probe.id">脚本</a> &nbsp;
                <a href="" v-if="!probe.isAdded" @click.prevent="addProbe(probe.id)">使用</a>
                <span class="grey" v-if="probe.isAdded">使用中</span>
            </td>
        </tr>
    </table>
</div>